import java.util.Scanner;
public class Example7_6{
  public static void main(String args[]){
     int [] score = {-120,98,76,54,120};
     int sum = 0;
     for(int number:score){
        assert number>=0:"负数不能是成绩";
        sum = sum+number;
     }
       System.out.println("总成绩:"+sum);
  }
}
